Xbasic

SQL::ConnectionFreeResult Method

Syntax

Result_Flag as L = FreeResult()

Returns

Result_FlagLogical

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

Description

Release the result set from the last SQL select statement.

Calling FreeResult is not generally necessary. Call it to free resources when there will be a delay between queries.

The FreeResult() method releases the result set from the last SQL select statement. Calling FreeResult()is not generally necessary. Call it to free resources when there will be a delay between queries.

Example

dim conn as SQL::Connection
dim connString as C
cs = "{A5API=Access,FileName='C:\Program Files\A5V8\MDBFiles\Alphasports.mdb',UserName='Admin'}"
if .not. conn.open(cs) then
    ui_msg_box("Error", conn.CallResult.text)
    end
end if
... do stuff
if .not. conn.FreeResult()then
    ui_msg_box("Error", conn.CallResult.text)
end if
conn.close()

See Also